//
//  GetLocation.h
//  OrderFood
//
//  Created by leilei on 2018/11/13.
//  Copyright © 2018年 zhiyuan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
typedef void(^MoLocationSuccess) (double lat, double lng);
typedef void(^MoLocationFailed) (NSError *error);
NS_ASSUME_NONNULL_BEGIN

@interface GetLocation : NSObject<CLLocationManagerDelegate>
{
    CLLocationManager *manager;
    MoLocationSuccess successCallBack;
    MoLocationFailed failedCallBack;
}

+ (GetLocation *) sharedGpsManager;

+ (void) getMoLocationWithSuccess:(MoLocationSuccess)success Failure:(MoLocationFailed)failure;

+ (void) stop;


//根据经纬度换算距离
-(double)distanceBetweenOrderByFrom:(CLLocationCoordinate2D)from to:(CLLocationCoordinate2D)to;

@end

NS_ASSUME_NONNULL_END
